package com.t235.gc.operations.service;

import com.t235.gc.dao.DeviceCabinetDao;
import com.t235.gc.entity.DeviceCabinet;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class DeviceCabinetService {
    @Resource
    private DeviceCabinetDao deviceCabinetDao;

    public Integer updateGoodsPosition(Integer goodsid,Integer rownumber,Integer colummnnumber){
        return deviceCabinetDao.updateGoodsPosition(goodsid,rownumber,colummnnumber);
    }

    public Integer updateGoodsStockQty(Integer goodsid,Integer stockqty){
        return deviceCabinetDao.updateGoodsStockQty(goodsid,stockqty);
    }

    public List<DeviceCabinet> selectLessStockGoods(){
        return deviceCabinetDao.selectLessStockGoods();
    }

    public List<DeviceCabinet> selectGoods(){
        return deviceCabinetDao.selectGoods();
    }
}
